<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/res/app/admin/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/lib/jquery.js"></script>
<title>框架菜单</title>
</head>
<style>
    html{
        height:auto;
        overflow-x:hidden;
    }
</style>
<script type="text/javascript">
    function setDefault(){
        $("ul").each(function()
        {
            if($(this).css("display")=="block") 
                $(this).parents("li").addClass("on");
        });
    }
    function SwitchMenu(obj){
        var el = document.getElementById(obj);
        var ar = document.getElementById("masterdiv").getElementsByTagName("ul"); 
        if(el.style.display != "block"){ 
            for (var i=0; i<ar.length; i++){
                ar[i].style.display = "none"; 
            }
            el.style.display = "block";
        }
        else{
            el.style.display = "none";
        }
        
        $("li[name^='li_']").removeClass("on");
        $("li[name='li_"+obj+"']").addClass("on");
    }
</script>
<body style="background:#eef2fb url(res/images/cn_sidebar.gif) repeat-y;" onload="setDefault();">
    <div class="cn_sidebar" >
        <div class="cn_menu"> 
            <ul id="masterdiv">
                 <li name="li_sub2">
                    <a href="javascript:void(0);" onclick="SwitchMenu('sub2')">后台管理</a>
                    <ul id="sub2" >
                        <li><a href="/admin/a-info/index" target='main'>phpinfo</a></li>
                        <li><a href="/adminweb/w-route/listRoute" target='main'>添加线路</a></li>
                    </ul>
                </li>
            </ul>
        </div> 
    </div>
</body>
</html>

